package com.violet.uaa.server.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.violet.common.entity.Role;

import java.util.List;

/**
 * @Author: wqf
 * @Date: 2024/08/31
 * @Description:
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 查询用户的角色信息
     *
     * @param userId 用户ID
     * @return
     */
    List<Role> selectByUserId(Long userId);
}